import "./assets/main.css";

import ToastService from "primevue/toastservice"; //引入toast服务

import "primeicons/primeicons.css";

import Lara from "@primeuix/themes/lara";
import { createApp } from "vue";
import { createPinia } from "pinia";
import App from "./App.vue";
import PrimeVue from "primevue/config";

const app = createApp(App);
const pinia = createPinia();
app.use(pinia);
app.use(ToastService);
app.use(PrimeVue, {
  theme: {
    preset: Lara,
    options: {
      darkModeSelector: ".my-app-dark",
    },
  },
});

app.mount("#app");
